<extend name='Index/index' />
<block name="link">
        <!-- 样式文件 -->
    <link rel="stylesheet" href="__ROOT__/umeditor/themes/default/css/umeditor.css">
    <!-- 引用jquery -->
    <script src="__PUBLIC__/js/home_index/jquery.min.js"></script>
    <!-- 配置文件 -->
    <script type="text/javascript" src="__ROOT__/umeditor/umeditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__ROOT__/umeditor/umeditor.js"></script>
    <!-- 语言包文件 -->
    <script type="text/javascript" src="__ROOT__/umeditor/lang/zh-cn/zh-cn.js"></script>
    <!-- 实例化编辑器代码 -->
    <script type="text/javascript">
        $(function(){
            window.um = UM.getEditor('container', {
                /* 传入配置参数,可配参数列表看umeditor.config.js */
                toolbar: ['source | undo redo | bold italic underline |  forecolor | selectall cleardoc | emotion image map'
            ]
            });
        });
    </script>
</block>
<block name="main">
    <div class="bg-light lter b-b wrapper-md">
        <h1 class="m-n font-thin h3">发布帖子</h1>
    </div>
    <br>
        <form class="form-horizontal" method="post" action="<{:U('Topic/topic_insert')}>" >
            <div class="form-group">
                <label for="title" class="col-sm-2 control-label"">标题 : </label>
                <div class="col-sm-7">
                    <input type="text" class="form-control" id="title" name='title'>
                </div>
            </div>
            <div class="form-group">
                <label for="user" class="col-sm-2 control-label">作者 : </label>
                <div class="col-sm-3">
                    <input type="text" id="user" class="form-control" name="user">
                </div>
                
            </div>

            <div class="form-group">
                <label for="" class="col-sm-2 control-label">内容 : </label>
                <div class="col-sm-7">
                <script id="container" name="content" type="text/plain" style="width:618px;height:200px;">
                </script>
                </div>
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label"></label>
                <div class="col-sm-7">
                    <button class="btn btn-default" style="min-width:100px">发表</button>
                </div>
            </div>

        </form>

</block>

